@import "./variables.scss";
@import "./mixin.scss";
@import "./transition.scss";
@import "./element-ui.scss";
@import "./sidebar.scss";

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// main-container global css
.app-container {
  padding: 20px;
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
    margin-left: 10px;
  }
}

.order-footer {
  margin-left: 120px;
  margin-top: 30px;
}

.count {
  margin-left: 48px;
  margin-top: 30px;
  span {
    font-size: 20px;
    font-weight: bold;
    margin-right: 50px;
  }
}

.list-header {
  border-bottom: 1px solid #e8e6e3;
  width: 80%;
  h2 {
    margin-left: 50px;
  }
}

.list-main {
  border-bottom: 1px solid #e8e6e3;
  width: 80%;
  .meal {
    margin: 20px 0 10px 50px;
  }
}

.list-footer {
  border-bottom: 1px solid #e8e6e3;
  width: 80%;
  padding: 20px 0;
  margin-bottom: 20px;
  :nth-child(1) {
    margin-left: 50px;
  }
}

.list-title {
  color: #909399;
  margin-right: 10px;
  font-size: 20px;
}
.list-label {
  font-size: 25px;
  font-weight: bold;
}

/* reset element-ui css */
$bg: #283443;
$light_gray: #fff;
$cursor: #fff;

@supports (-webkit-mask: none) and (not (cater-color: $cursor)) {
  .container .el-input input {
    color: $cursor;
  }
}

.container {
  .el-input {
    display: inline-block;
    height: 47px;
    width: 85%;

    input {
      background: transparent;
      border: 0px;
      -webkit-appearance: none;
      border-radius: 0px;
      padding: 12px 5px 12px 15px;
      color: $light_gray;
      height: 47px;
      caret-color: $cursor;

      &:-webkit-autofill {
        box-shadow: 0 0 0px 1000px $bg inset !important;
        -webkit-text-fill-color: $cursor !important;
      }
    }
  }

  .el-form-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    color: #454545;
  }
}
